package com.shuoyue.ycgk.ui.main.today_count;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.shuoyue.ycgk.R;
import com.shuoyue.ycgk.base.baseadapter.AppBaseQuickAdapter;
import com.shuoyue.ycgk.entity.TodayCourse;
import com.shuoyue.ycgk.entity.TodayQuestion;

import java.util.List;

public class TodayCourseAdapter extends AppBaseQuickAdapter<TodayCourse> {
    public TodayCourseAdapter(@Nullable List<TodayCourse> data) {
        super(R.layout.item_today_course, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TodayCourse item) {
        helper.addOnClickListener(R.id.lay_all);
        helper.setText(R.id.title, item.getArrangeName());
        helper.setText(R.id.learnTime, "学习时间：" + item.getLastsStr());
        helper.setText(R.id.endTime, item.getCreateTime());
        helper.setText(R.id.courseName, item.getCourseName());

    }
}
